package com.example.demo20250517.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName result
 */
@TableName(value ="result")
public class Result implements Serializable {
    /**
     * 
     */
    @TableId
    private Long id;

    /**
     * 
     */
    private String detail;

    /**
     * 
     */
    private String summarize;

    /**
     * 
     */
    private String suggest;

    /**
     * 
     */
    private Long userId;

    /**
     * 是否解锁:0未 1已
     */
    private Integer isLock;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getDetail() {
        return detail;
    }

    /**
     * 
     */
    public void setDetail(String detail) {
        this.detail = detail;
    }

    /**
     * 
     */
    public String getSummarize() {
        return summarize;
    }

    /**
     * 
     */
    public void setSummarize(String summarize) {
        this.summarize = summarize;
    }

    /**
     * 
     */
    public String getSuggest() {
        return suggest;
    }

    /**
     * 
     */
    public void setSuggest(String suggest) {
        this.suggest = suggest;
    }

    /**
     * 
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 是否解锁:0未 1已
     */
    public Integer getIsLock() {
        return isLock;
    }

    /**
     * 是否解锁:0未 1已
     */
    public void setIsLock(Integer isLock) {
        this.isLock = isLock;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Result other = (Result) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDetail() == null ? other.getDetail() == null : this.getDetail().equals(other.getDetail()))
            && (this.getSummarize() == null ? other.getSummarize() == null : this.getSummarize().equals(other.getSummarize()))
            && (this.getSuggest() == null ? other.getSuggest() == null : this.getSuggest().equals(other.getSuggest()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getIsLock() == null ? other.getIsLock() == null : this.getIsLock().equals(other.getIsLock()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDetail() == null) ? 0 : getDetail().hashCode());
        result = prime * result + ((getSummarize() == null) ? 0 : getSummarize().hashCode());
        result = prime * result + ((getSuggest() == null) ? 0 : getSuggest().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getIsLock() == null) ? 0 : getIsLock().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", detail=").append(detail);
        sb.append(", summarize=").append(summarize);
        sb.append(", suggest=").append(suggest);
        sb.append(", userId=").append(userId);
        sb.append(", isLock=").append(isLock);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}